package com.grain.platform.em.yingji;

import java.util.ArrayList;
import java.util.List;

import org.springframework.stereotype.Component;

import com.bstek.dorado.annotation.DataProvider;
import com.grain.platform.entity.Personnel;

@Component
public class PersonnelLibrary {

	@DataProvider
	public List<Personnel> getPersonnel(){
		List<Personnel> p = new ArrayList<Personnel>();
		Personnel p1 = new Personnel();
		p1.setId("1");
		p1.setMarriage("否");
		p1.setAddress("XXXXXXXXXXXXXXXXXXXXXXXX");
		p1.setEducation("一本");
		p1.setName("章阿萨");
		p1.setNation("汉");
		p1.setSex("男");
		p1.setState("在职");
		p1.setType("管理型人才");
		p.add(p1);
		
		Personnel p2 = new Personnel();
		p2.setId("2");
		p2.setMarriage("否");
		p2.setAddress("XXXXXXXXXXXXXXXXXXXXXXXX");
		p2.setEducation("博士");
		p2.setName("李高");
		p2.setNation("汉");
		p2.setSex("男");
		p2.setState("离职");
		p2.setType("创新性人才");
		p.add(p2);
		
		Personnel p3 = new Personnel();
		p3.setId("3");
		p3.setMarriage("否");
		p3.setAddress("XXXXXXXXXXXXXXXXXXXXXXXX");
		p3.setEducation("硕士");
		p3.setName("张飞");
		p3.setNation("汉");
		p3.setSex("男");
		p3.setState("退休");
		p3.setType("技术性人才");
		p.add(p3);
		
		Personnel p4 = new Personnel();
		p4.setId("4");
		p4.setMarriage("否");
		p4.setAddress("XXXXXXXXXXXXXXXXXXXXXXXX");
		p4.setEducation("一本");
		p4.setName("吴卫东");
		p4.setNation("汉");
		p4.setSex("男");
		p4.setState("后备");
		p4.setType("专家");
		p.add(p4);
		return p;
	}
}
